package com.baichang.taoshunda.service;

import com.baichang.framework.excelption.ServiceException;
import com.baichang.framework.model.Page;

import java.math.BigDecimal;
import java.text.ParseException;
import java.util.Map;

/**
 * Created by Administrator on 2018/2/24 0024.
 */
public interface BusinessMoneyRecordService {

    /**
     *保证金查询
     *
     * @param busId
     * @param typeId
     * @param is
     * @return
     */
    Map<String, Object> queryTypeMoney(Integer busId, Integer typeId, Integer is);

    /**
     *
     * @return
     * @param busId
     * @param payType
     * @param money
     */
    Map<String, Object> payDeposit(Integer busId, Integer payType, BigDecimal money);

    /**
     *
     * @param busId
     * @param payType
     * @param money
     * @param type
     * @return
     */
    boolean successPayDeposit(Integer busId, Integer payType, BigDecimal money, Integer type);

    /**
     *
     * @param id
     * @param busId
     * @param money
     * @param type
     * @return
     */
    boolean returnDepositMoney(Integer id, Integer busId, BigDecimal money, Integer type) throws ServiceException, ParseException;

    /**
     *查询需要审核的保证金
     *
     * @param businessName
     * @param nowPage
     * @param pageSize
     * @return
     */
    Page queryAuditingDepsoit(String businessName, int nowPage, int pageSize);

    /**
     * 同意审核
     * @param id
     * @return
     */
    boolean updateStatus(Integer id);

    /**
     *查询保证金的记录
     *
     * @param businessName
     * @param nowPage
     * @param pageSize
     * @return
     */
    Page queryRecord(String businessName, int nowPage, int pageSize);
}
